package hypergraph;

public class HyperEdge {
	protected static int NEXT_ID = 0;
	int id;
	private char label;
	
	
	public HyperEdge(char label){
		id = NEXT_ID;
		NEXT_ID++;
		this.setLabel(label);
	}
	
	public int hashCode(){
		return id;
	}
	
	public String toString(){
		return "N"+id+":"+getLabel();
	}

	public void print() {
		System.out.println(""+getLabel()+id);
		
	}

	public void setLabel(char label) {
		this.label = label;
	}

	public char getLabel() {
		return label;
	}
	public HyperEdge clone(){
		return new HyperEdge(label);
	}
}
